const mongoose = require('mongoose');

mongoose.connection('mongo://127.0.0.127017/mysh2205');


mongoose.on('connection',()=>{
    console.log('连接成功')
})
mongoose.on('error',()=>{
    console.log('连接失败')
})
mongoose.on('disconnection',()=>{
    console.log('连接断开')
})
